package com.edu.study.base.stuAnswerResultSummary.service;

import java.util.List;

import com.edu.study.base.stuAnswerResultSummary.domain.AnswerResult;
import com.edu.study.base.stuAnswerResultSummary.domain.AnswerResultSummaryEntity;
import com.edu.study.base.stuAnswerResultSummary.domain.StuAnswerResultSummary;
import com.ruoyi.common.core.domain.AjaxResult;

/**
 * 答题结果汇总Service接口
 * 
 * @author jjt
 * @date 2021-06-20
 */
public interface IStuAnswerResultSummaryService 
{
    /**
     * 查询答题结果汇总
     * 
     * @param id 答题结果汇总ID
     * @return 答题结果汇总
     */
    public StuAnswerResultSummary selectStuAnswerResultSummaryById(Long id);

    /**
     * 查询答题结果汇总列表
     * 
     * @param stuAnswerResultSummary 答题结果汇总
     * @return 答题结果汇总集合
     */
    public List<StuAnswerResultSummary> selectStuAnswerResultSummaryList(StuAnswerResultSummary stuAnswerResultSummary);

    /**
     * 新增答题结果汇总
     * 
     * @param stuAnswerResultSummary 答题结果汇总
     * @return 结果
     */
    public int insertStuAnswerResultSummary(StuAnswerResultSummary stuAnswerResultSummary);

    /**
     * 修改答题结果汇总
     * 
     * @param stuAnswerResultSummary 答题结果汇总
     * @return 结果
     */
    public int updateStuAnswerResultSummary(StuAnswerResultSummary stuAnswerResultSummary);

    /**
     * 批量删除答题结果汇总
     * 
     * @param ids 需要删除的答题结果汇总ID
     * @return 结果
     */
    public int deleteStuAnswerResultSummaryByIds(Long[] ids);

    /**
     * 删除答题结果汇总信息
     * 
     * @param id 答题结果汇总ID
     * @return 结果
     */
    public int deleteStuAnswerResultSummaryById(Long id);

    public AjaxResult submitSingle(AnswerResultSummaryEntity entity);

    public AjaxResult batchSubmitResult(AnswerResult answerResult);

    public AjaxResult submitWrite(AnswerResultSummaryEntity entity);
}
